package com.chenxy.user.center.exception;

import com.chenxy.common.exception.BaseException;

/**
 * 用户中心模块异常配置
 */
public enum UserCenterExceptionEnum implements BaseException {
    //用户中心模块为2开头
    USER_NOT_EXIST(200001,"用户不存在")

    ;
    /**
     *  错误编码
     */
    private int errCode;
    /**
     *  错误信息
     */
    private String errMsg;

    private UserCenterExceptionEnum(int errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }


    @Override
    public int getErrCode() {
        return errCode;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }

    @Override
    public BaseException setErrMsg(String errMsg) {
        this.errMsg = errMsg;
        return this;
    }
}
